<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" 
	MasterPageFile="~/App_ThemeMasters/NoStyle/OneColumnLayout.Master" Inherits="Syrinx.Gui.AspNet.Nitobi2.NitobiBasePage" EnableEventValidation="false" %>

<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<%@ Register Assembly="Articles.Gui.AspNet" Namespace="Articles.Gui.AspNet" TagPrefix="art" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardHeaderPageContent.inc"-->
<!--#include file="../SiteControls/StandardFooterPageContent.inc"-->

<asp:Content ID="c1" ContentPlaceHolderID="title" runat="server">
	<swf:BizProc runat="server" ID="gArt1" factoryName="genericArticles">
		<State useTemplates="true" includeSelf="true" entireTree="true" EditModeSessionKey="GlobalEdit" />
		<ParentBizProc id="loginBP"  />
	</swf:BizProc>
</asp:Content>

<asp:Content ID="c2" ContentPlaceHolderID="trails" runat="server">
		<div  >
			<span class="button4"><snc:ActionButton runat="server" ID="ActionButton1" Actions="gArt1.SwitchEdit" Text="Edit" SessionBoolSwitch="GlobalEdit"  /></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton2" Actions="gArt1.SwitchTranslation" Text="Translate" SessionBoolSwitch="TranslationMode" /></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton12" Actions="gArt1.TranslateArticle" Text="Auto Translate" /></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton3" Actions="gArt1.AddBizObj" Text="Add" /></span>
			<span class="button6"><snc:ActionButton runat="server" ID="ActionButton4" Actions="gArt1.UpdateBizObj" Text="Update" /></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton5" Actions="gArt1.CancelEdits" Text="Cancel" /></span>
			<span class="button5"><snc:ActionButton runat="server" ID="ActionButton6" Actions="gArt1.DeleteBizObj" Text="Delete" ClientClick="if(!confirm('Are you sure you want to delete?'))return false;"/></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton7" Actions="gArt1.SetArticlePicture" Text="Set Image" ToolTip="Set primary media for this article" 
				PopupPage="../std/SetArticleImagePopup.aspx" PopupHeight="535px" PopupWidth="800px" PopupTitle="Select a primary image for this article." /></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton8" Actions="gArt1.GenerateFromMedia" Text="Generate" ToolTip="Generate child article from media derictory"
				PopupPage="../std/ImageArticleGenPopup.aspx" PopupHeight="535px" PopupWidth="800px" PopupTitle="Generate articles from media directory."/></span>
			<span class="button1"><snc:ActionButton runat="server" ID="ActionButton9" Actions="gArt1.GenerateFromYouTube" Text="uTubeGen" ToolTip="Generate child article from You Tube Account"
				PopupPage="../std/PopupYouTubeGenPopup.aspx" PopupHeight="535px" PopupWidth="800px" PopupTitle="Generate articles from You Tube Account." /></span>
			<span class="button3"><snc:ActionButton runat="server" ID="ActionButton10" Actions="gArt1.MovePrev" Text="Previous" /></span>
			<span class="button3"><snc:ActionButton runat="server" ID="ActionButton11" Actions="gArt1.MoveNext" Text="Next" /></span>
		</div>
<div class="clearer"></div>
</asp:Content>

<asp:Content ID="c3" ContentPlaceHolderID="mainContent" runat="server">
	<div class="articleBox">
		<snc:NitobiBizObjDisplay runat="server" ID="a1"
			ParentBizProcIds="gArt1" TemplateFromBizObjField="body"
				ReadOnlyTemplate="Articles.Gui.AspNet.ArticleRODisplay"
				EditableTemplate="Articles.Gui.AspNet.ArticleRWDisplay" >

		</snc:NitobiBizObjDisplay>
	</div>
</asp:Content>
